package com.leimo.service.impl;

import com.leimo.common.Constant;
import com.leimo.dto.ChatInfoDto;
import com.leimo.mapper.ChatInfoMapper;
import com.leimo.service.CustomerServiceService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 客服
 *
 * @author 段誉
 * @create 2019-02-26 16:35
 */
@Service
public class CustomerServiceServiceImpl implements CustomerServiceService {
  /**
   * 客服id
   */
  private static final Integer CUSTOMER_SERVICE_ID = 2;

  @Autowired
  private ChatInfoMapper chatInfoMapper;

  @Override
  public ChatInfoDto getInfo() {
    return chatInfoMapper.selectChatInfoByTypeAndId(Constant.CHAT_TYPE_CUSTOMER_SERVICE,
            CUSTOMER_SERVICE_ID);
  }
}
